import request from '@/config/axios'

export interface materialPickVO {
  orderCode: string,
  type: string,
  code: string,
  specification: string,
  racketModel: string
  sheetNum: string,
  weight: string,
  cutSize: string,
  knivesNum: string,
  amount: string,
  materialsCut: string,
  addLayers: string,
  materialStatus: string
}

// 查询
export const getmaterialPick = (data) => {
  return request.post({ url: '/project/kis-materiel-ex-warehouse/exWarehousePage', data })
}

// 查询状态
export const materialPickState = (params) => {
  return request.get({ url: '/system/dict-data/page', params })
}

// 查询详情
export const materialPickDetail = (params) => {
  return request.get({ url: '/project/kis-materiel-ex-warehouse/detailByExCode', params })
}

// 查询多个箱码数量
export const materialPickNum = (data) => {
  return request.get({ url: '/project/kis-materiel-ex-warehouse/get?id='+ data })
}



// 领料单作废
export const getmaterialDelete = (data) => {
  return request.post({ url: '/project/kis-materiel-ex-warehouse/abolish', data })
}
